<?php require_once('../../core/import.php');?>
<?php User::Permission('EXHIBITION_TOPIC_EDIT'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=8" />
    <script type="text/javascript" src="../../scripts/import.js"></script>
    <script type="text/javascript" src="../../scripts/components/kindeditor/import.kindeditor.js"></script>
    <script type="text/javascript" src="scripts/edit.js"></script>
</head>

<body>
	<?php
		#赋值检测
		if(!is_numeric($ID=Functions::UrlArgs('id'))) exit('信息ID不正确');
		
		#获取数据
		$Data=DB::GetRowByID('exhibition_topic',$ID);
		if(!$Data){
			exit('找不到该信息');				
		}
    ?> 	
    <form id="Form1" name="Form1" method="post" enctype="multipart/form-data" action="edit.action.php" class="Form">
        <fieldset>
            <legend>专题信息</legend>
            <table width="100%" cellpadding="1" cellspacing="0">
        <tr>
                <td width="60" height="25" align="left">专题名称：</td>
                <td width="869" colspan="2">
                    <input type="hidden" id="ID" name="ID" value="<?php echo $Data['ID'];?>" />
                    <input name="Title" type="text" class="Textbox" id="Title" value="<?php echo $Data['Title'];?>"  size="75" />
                </td>
            </tr>
             <tr>
                <td width="60" height="25" align="left">专题地址：</td>
                <td width="869" colspan="2">
                    <input name="Location" type="text" class="Textbox" id="Location" value="<?php echo $Data['Location'];?>" size="75" />
                </td>
            </tr>    
           <tr>
             	<td height="25" align="left" valign="middle">缩&nbsp;&nbsp;略&nbsp;图：</td>
		       	<td colspan="2">                	
                    <input name="ThumbnailPath" type="File" class="Textbox" id="ThumbnailPath" size="62" />
               		<input type="hidden" id="OldThumbnailPath" name="OldThumbnailPath" value="<?php echo $Data['ThumbnailPath'];?>" />
                    <a href="<?php echo Config::PATH_RELATIVE_ATTACHMENT_TEMP.'/'.$Data['ThumbnailPath']; ?>" target="_blank">查看</a>
                </td>
            </tr>                    
             <tr>
                <td width="60" height="25" align="left" valign="top">专题描述：</td>
                <td width="869" colspan="2">
                 <textarea name="Summary" cols="80" rows="10" class="Textarea" id="Summary"><?php echo $Data['Summary'];?></textarea>
                </td>
            </tr>
             <tr>
             <td height="25" align="left">展会时间：</td>
             <td colspan="2"><input name="Holdtime" type="text" class="Textbox" id="Holdtime" value="<?php echo $Data['Holdtime'];?>"  size="30" /></td>
             </tr>
             <tr>
             <td height="25" align="left">展会地点：</td>
             <td colspan="2"><input name="Place" type="text" class="Textbox" id="Place" value="<?php echo $Data['Place'];?>"  size="30" /></td>
             </tr>

            </table>
        </fieldset>
        <input id="ActionButton" name="ActionButton" type="submit" value="确定" class="button" /> <input id="ResetButton" name="ResetButton" type="reset" value="重置" class="button" />
    </form>
</body>
</html>